package com.toKnow.model.entity;

import java.sql.Timestamp;
import java.util.List;

public class ResourcePub {

    private Integer id;
    private String title;
    private Integer author_id;
    private Timestamp  publish_date;
    private String file;
    private Integer is_charged;
    private Float price;
    private Integer buy_number;
    private Integer download_number;
    private Integer like_number;
    private Integer collect_number;
    private Integer comment_number;
    private String description;

    private String cover;

    private String digest;

    private String source_name;
    private List<Integer> tagIds;
    private List<Integer> typeIds;

    public List<Integer> getTagIds() {
        return tagIds;
    }

    public void setTagIds(List<Integer> tagIds) {
        this.tagIds = tagIds;
    }

    public List<Integer> getTypeIds() {
        return typeIds;
    }

    public void setTypeIds(List<Integer> typeIds) {
        this.typeIds = typeIds;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getAuthor_id() {
        return author_id;
    }

    public void setAuthor_id(Integer author_id) {
        this.author_id = author_id;
    }

    public Timestamp getPublish_date() {
        return publish_date;
    }

    public void setPublish_date(Timestamp publish_date) {
        this.publish_date = publish_date;
    }

    public String getFile() {
        return file;
    }

    public void setFile(String file) {
        this.file = file;
    }

    public Integer getIs_charged() {
        return is_charged;
    }

    public void setIs_charged(Integer is_charged) {
        this.is_charged = is_charged;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public Integer getBuy_number() {
        return buy_number;
    }

    public void setBuy_number(Integer buy_number) {
        this.buy_number = buy_number;
    }

    public Integer getDownload_number() {
        return download_number;
    }

    public void setDownload_number(Integer download_number) {
        this.download_number = download_number;
    }

    public Integer getLike_number() {
        return like_number;
    }

    public void setLike_number(Integer like_number) {
        this.like_number = like_number;
    }

    public Integer getCollect_number() {
        return collect_number;
    }

    public void setCollect_number(Integer collect_number) {
        this.collect_number = collect_number;
    }

    public Integer getComment_number() {
        return comment_number;
    }

    public void setComment_number(Integer comment_number) {
        this.comment_number = comment_number;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getDigest() {
        return digest;
    }

    public void setDigest(String digest) {
        this.digest = digest;
    }

    public String getSource_name() {
        return source_name;
    }

    public void setSource_name(String source_name) {
        this.source_name = source_name;
    }

    @Override
    public String toString() {
        return "ResourcePub{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", author_id=" + author_id +
                ", publish_date=" + publish_date +
                ", file='" + file + '\'' +
                ", is_charged=" + is_charged +
                ", price=" + price +
                ", buy_number=" + buy_number +
                ", download_number=" + download_number +
                ", like_number=" + like_number +
                ", collect_number=" + collect_number +
                ", comment_number=" + comment_number +
                ", description='" + description + '\'' +
                '}';
    }
}
